if (priv->cur_page == list->data)
{
- if (priv->cur_page->tab_label)
- gtk_style_context_remove_class (gtk_widget_get_style_context (priv->cur_page->tab_label),
- "active-page");
priv->cur_page = NULL;
if (next_list && !destroying)
gtk_notebook_switch_page (notebook, GTK_NOTEBOOK_PAGE (next_list));
gtk_widget_set_child_visible (priv->cur_page->child, FALSE);
gtk_css_node_set_state (priv->cur_page->cssnode,
gtk_css_node_get_state (priv->cur_page->cssnode) & ~GTK_STATE_FLAG_ACTIVE);
- if (priv->cur_page->tab_label)
- gtk_style_context_remove_class (gtk_widget_get_style_context (priv->cur_page->tab_label),
- "active-page");
}
priv->cur_page = page;
gtk_css_node_set_state (page->cssnode,
gtk_css_node_get_state (page->cssnode) | GTK_STATE_FLAG_ACTIVE);
- if (page->tab_label)
- gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
- "active-page");
if (!priv->focus_tab ||
priv->focus_tab->data != (gpointer) priv->cur_page)
G_CALLBACK (gtk_notebook_mnemonic_activate_switch_page),
notebook);
- if (priv->cur_page == page)
- gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
- "active-page");
-
if (priv->prelight_tab == page)
gtk_style_context_add_class (gtk_widget_get_style_context (page->tab_label),
"prelight-page");
&:hover, &.prelight-page {
border-color: $borders_color;
}
- &:active, &.active-page, &:backdrop:active {
+ &:active, &:backdrop:active {
border-color: $selected_bg_color;
}
&:backdrop {
border-#{$_border}-color: $borders_color;
background-color: transparentize($bg_color,0.8);
}
- &:active, &.active-page {
+ &:active {
background-color: transparentize($bg_color,0.5);
border-color: transparentize($borders_color,0.5);
border-#{$_border}-color: $selected_bg_color;
color: mix($backdrop_fg_color, $backdrop_insensitive_color, 50%);
}
}
- .active-page .label, .label.active-page {
+ &:active .label {
// active tab text
color: $fg_color;
&:backdrop { color: $backdrop_fg_color; }
border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
border-color: #1c1f1f; }
- .notebook tab:active, .notebook tab.active-page, .notebook tab:backdrop:active {
+ .notebook tab:active, .notebook tab:backdrop:active {
border-color: #215d9c; }
.notebook tab:backdrop {
background-color: transparent;
border-color: rgba(28, 31, 31, 0.3);
border-bottom-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
- .notebook tab.reorderable-page.top:active, .notebook tab.reorderable-page.top.active-page {
+ .notebook tab.reorderable-page.top:active {
background-color: rgba(57, 63, 63, 0.5);
border-color: rgba(28, 31, 31, 0.5);
border-bottom-color: #215d9c; }
- .notebook tab.reorderable-page.top:active:hover, .notebook tab.reorderable-page.top.active-page:hover {
+ .notebook tab.reorderable-page.top:active:hover {
background-color: rgba(57, 63, 63, 0.7); }
- .notebook tab.reorderable-page.top:active:backdrop, .notebook tab.reorderable-page.top.active-page:backdrop {
+ .notebook tab.reorderable-page.top:active:backdrop {
border-color: #1e2222;
background-color: #393f3f;
border-bottom-color: #215d9c; }
border-color: rgba(28, 31, 31, 0.3);
border-top-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
- .notebook tab.reorderable-page.bottom:active, .notebook tab.reorderable-page.bottom.active-page {
+ .notebook tab.reorderable-page.bottom:active {
background-color: rgba(57, 63, 63, 0.5);
border-color: rgba(28, 31, 31, 0.5);
border-top-color: #215d9c; }
- .notebook tab.reorderable-page.bottom:active:hover, .notebook tab.reorderable-page.bottom.active-page:hover {
+ .notebook tab.reorderable-page.bottom:active:hover {
background-color: rgba(57, 63, 63, 0.7); }
- .notebook tab.reorderable-page.bottom:active:backdrop, .notebook tab.reorderable-page.bottom.active-page:backdrop {
+ .notebook tab.reorderable-page.bottom:active:backdrop {
border-color: #1e2222;
background-color: #393f3f;
border-top-color: #215d9c; }
border-color: rgba(28, 31, 31, 0.3);
border-right-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
- .notebook tab.reorderable-page.left:active, .notebook tab.reorderable-page.left.active-page {
+ .notebook tab.reorderable-page.left:active {
background-color: rgba(57, 63, 63, 0.5);
border-color: rgba(28, 31, 31, 0.5);
border-right-color: #215d9c; }
- .notebook tab.reorderable-page.left:active:hover, .notebook tab.reorderable-page.left.active-page:hover {
+ .notebook tab.reorderable-page.left:active:hover {
background-color: rgba(57, 63, 63, 0.7); }
- .notebook tab.reorderable-page.left:active:backdrop, .notebook tab.reorderable-page.left.active-page:backdrop {
+ .notebook tab.reorderable-page.left:active:backdrop {
border-color: #1e2222;
background-color: #393f3f;
border-right-color: #215d9c; }
border-color: rgba(28, 31, 31, 0.3);
border-left-color: #1c1f1f;
background-color: rgba(57, 63, 63, 0.2); }
- .notebook tab.reorderable-page.right:active, .notebook tab.reorderable-page.right.active-page {
+ .notebook tab.reorderable-page.right:active {
background-color: rgba(57, 63, 63, 0.5);
border-color: rgba(28, 31, 31, 0.5);
border-left-color: #215d9c; }
- .notebook tab.reorderable-page.right:active:hover, .notebook tab.reorderable-page.right.active-page:hover {
+ .notebook tab.reorderable-page.right:active:hover {
background-color: rgba(57, 63, 63, 0.7); }
- .notebook tab.reorderable-page.right:active:backdrop, .notebook tab.reorderable-page.right.active-page:backdrop {
+ .notebook tab.reorderable-page.right:active:backdrop {
border-color: #1e2222;
background-color: #393f3f;
border-left-color: #215d9c; }
color: #c0c2c0; }
.notebook tab .prelight-page .label:backdrop, .notebook tab .label.prelight-page:backdrop {
color: #787e7e; }
- .notebook tab .active-page .label, .notebook tab .label.active-page {
+ .notebook tab:active .label {
color: #eeeeec; }
- .notebook tab .active-page .label:backdrop, .notebook tab .label.active-page:backdrop {
+ .notebook tab:active .label:backdrop {
color: #939695; }
.notebook tab .button, .notebook tab .header-bar .button.titlebutton, .header-bar .notebook tab .button.titlebutton,
.notebook tab .titlebar .button.titlebutton,
border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
border-color: #a1a1a1; }
- .notebook tab:active, .notebook tab.active-page, .notebook tab:backdrop:active {
+ .notebook tab:active, .notebook tab:backdrop:active {
border-color: #4a90d9; }
.notebook tab:backdrop {
background-color: transparent;
border-color: rgba(161, 161, 161, 0.3);
border-bottom-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
- .notebook tab.reorderable-page.top:active, .notebook tab.reorderable-page.top.active-page {
+ .notebook tab.reorderable-page.top:active {
background-color: rgba(237, 237, 237, 0.5);
border-color: rgba(161, 161, 161, 0.5);
border-bottom-color: #4a90d9; }
- .notebook tab.reorderable-page.top:active:hover, .notebook tab.reorderable-page.top.active-page:hover {
+ .notebook tab.reorderable-page.top:active:hover {
background-color: rgba(237, 237, 237, 0.7); }
- .notebook tab.reorderable-page.top:active:backdrop, .notebook tab.reorderable-page.top.active-page:backdrop {
+ .notebook tab.reorderable-page.top:active:backdrop {
border-color: #a8a8a8;
background-color: #ededed;
border-bottom-color: #4a90d9; }
border-color: rgba(161, 161, 161, 0.3);
border-top-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
- .notebook tab.reorderable-page.bottom:active, .notebook tab.reorderable-page.bottom.active-page {
+ .notebook tab.reorderable-page.bottom:active {
background-color: rgba(237, 237, 237, 0.5);
border-color: rgba(161, 161, 161, 0.5);
border-top-color: #4a90d9; }
- .notebook tab.reorderable-page.bottom:active:hover, .notebook tab.reorderable-page.bottom.active-page:hover {
+ .notebook tab.reorderable-page.bottom:active:hover {
background-color: rgba(237, 237, 237, 0.7); }
- .notebook tab.reorderable-page.bottom:active:backdrop, .notebook tab.reorderable-page.bottom.active-page:backdrop {
+ .notebook tab.reorderable-page.bottom:active:backdrop {
border-color: #a8a8a8;
background-color: #ededed;
border-top-color: #4a90d9; }
border-color: rgba(161, 161, 161, 0.3);
border-right-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
- .notebook tab.reorderable-page.left:active, .notebook tab.reorderable-page.left.active-page {
+ .notebook tab.reorderable-page.left:active {
background-color: rgba(237, 237, 237, 0.5);
border-color: rgba(161, 161, 161, 0.5);
border-right-color: #4a90d9; }
- .notebook tab.reorderable-page.left:active:hover, .notebook tab.reorderable-page.left.active-page:hover {
+ .notebook tab.reorderable-page.left:active:hover {
background-color: rgba(237, 237, 237, 0.7); }
- .notebook tab.reorderable-page.left:active:backdrop, .notebook tab.reorderable-page.left.active-page:backdrop {
+ .notebook tab.reorderable-page.left:active:backdrop {
border-color: #a8a8a8;
background-color: #ededed;
border-right-color: #4a90d9; }
border-color: rgba(161, 161, 161, 0.3);
border-left-color: #a1a1a1;
background-color: rgba(237, 237, 237, 0.2); }
- .notebook tab.reorderable-page.right:active, .notebook tab.reorderable-page.right.active-page {
+ .notebook tab.reorderable-page.right:active {
background-color: rgba(237, 237, 237, 0.5);
border-color: rgba(161, 161, 161, 0.5);
border-left-color: #4a90d9; }
- .notebook tab.reorderable-page.right:active:hover, .notebook tab.reorderable-page.right.active-page:hover {
+ .notebook tab.reorderable-page.right:active:hover {
background-color: rgba(237, 237, 237, 0.7); }
- .notebook tab.reorderable-page.right:active:backdrop, .notebook tab.reorderable-page.right.active-page:backdrop {
+ .notebook tab.reorderable-page.right:active:backdrop {
border-color: #a8a8a8;
background-color: #ededed;
border-left-color: #4a90d9; }
color: #5d6263; }
.notebook tab .prelight-page .label:backdrop, .notebook tab .label.prelight-page:backdrop {
color: #aaabac; }
- .notebook tab .active-page .label, .notebook tab .label.active-page {
+ .notebook tab:active .label {
color: #2e3436; }
- .notebook tab .active-page .label:backdrop, .notebook tab .label.active-page:backdrop {
+ .notebook tab:active .label:backdrop {
color: #8d9091; }
.notebook tab .button, .notebook tab .header-bar .button.titlebutton, .header-bar .notebook tab .button.titlebutton,
.notebook tab .titlebar .button.titlebutton,
&:hover, &.prelight-page {
border-color: $borders_color;
}
- &:active, &.active-page, &:backdrop:active {
+ &:active, &:backdrop:active {
border-color: $selected_bg_color;
}
&:backdrop {
border-#{$_border}-color: $borders_color;
background-color: transparentize($bg_color,0.8);
}
- &:active, &.active-page {
+ &:active {
background-color: transparentize($bg_color,0.5);
border-color: transparentize($borders_color,0.5);
border-#{$_border}-color: $selected_bg_color;
// prelight tab text
color: mix($fg_color, $insensitive_fg_color, 50%);
}
- &.active-page GtkLabel, GtkLabel.active-page {
+ &:active GtkLabel {
// active tab text
color: $fg_color;
&:backdrop { color: $backdrop_fg_color; }
border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
border-color: #7f7f7f; }
- .notebook tab:active, .notebook tab.active-page, .notebook tab:backdrop:active {
+ .notebook tab:active, .notebook tab:backdrop:active {
border-color: #000; }
.notebook tab:backdrop {
background-color: transparent;
border-color: rgba(127, 127, 127, 0.3);
border-bottom-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
- .notebook tab.reorderable-page.top:active, .notebook tab.reorderable-page.top.active-page {
+ .notebook tab.reorderable-page.top:active {
background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(127, 127, 127, 0.5);
border-bottom-color: #000; }
- .notebook tab.reorderable-page.top:active:hover, .notebook tab.reorderable-page.top.active-page:hover {
+ .notebook tab.reorderable-page.top:active:hover {
background-color: rgba(255, 255, 255, 0.7); }
- .notebook tab.reorderable-page.top:active:backdrop, .notebook tab.reorderable-page.top.active-page:backdrop {
+ .notebook tab.reorderable-page.top:active:backdrop {
border-color: #8b8b8b;
background-color: #fff;
border-bottom-color: #000; }
border-color: rgba(127, 127, 127, 0.3);
border-top-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
- .notebook tab.reorderable-page.bottom:active, .notebook tab.reorderable-page.bottom.active-page {
+ .notebook tab.reorderable-page.bottom:active {
background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(127, 127, 127, 0.5);
border-top-color: #000; }
- .notebook tab.reorderable-page.bottom:active:hover, .notebook tab.reorderable-page.bottom.active-page:hover {
+ .notebook tab.reorderable-page.bottom:active:hover {
background-color: rgba(255, 255, 255, 0.7); }
- .notebook tab.reorderable-page.bottom:active:backdrop, .notebook tab.reorderable-page.bottom.active-page:backdrop {
+ .notebook tab.reorderable-page.bottom:active:backdrop {
border-color: #8b8b8b;
background-color: #fff;
border-top-color: #000; }
border-color: rgba(127, 127, 127, 0.3);
border-right-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
- .notebook tab.reorderable-page.left:active, .notebook tab.reorderable-page.left.active-page {
+ .notebook tab.reorderable-page.left:active {
background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(127, 127, 127, 0.5);
border-right-color: #000; }
- .notebook tab.reorderable-page.left:active:hover, .notebook tab.reorderable-page.left.active-page:hover {
+ .notebook tab.reorderable-page.left:active:hover {
background-color: rgba(255, 255, 255, 0.7); }
- .notebook tab.reorderable-page.left:active:backdrop, .notebook tab.reorderable-page.left.active-page:backdrop {
+ .notebook tab.reorderable-page.left:active:backdrop {
border-color: #8b8b8b;
background-color: #fff;
border-right-color: #000; }
border-color: rgba(127, 127, 127, 0.3);
border-left-color: #7f7f7f;
background-color: rgba(255, 255, 255, 0.2); }
- .notebook tab.reorderable-page.right:active, .notebook tab.reorderable-page.right.active-page {
+ .notebook tab.reorderable-page.right:active {
background-color: rgba(255, 255, 255, 0.5);
border-color: rgba(127, 127, 127, 0.5);
border-left-color: #000; }
- .notebook tab.reorderable-page.right:active:hover, .notebook tab.reorderable-page.right.active-page:hover {
+ .notebook tab.reorderable-page.right:active:hover {
background-color: rgba(255, 255, 255, 0.7); }
- .notebook tab.reorderable-page.right:active:backdrop, .notebook tab.reorderable-page.right.active-page:backdrop {
+ .notebook tab.reorderable-page.right:active:backdrop {
border-color: #8b8b8b;
background-color: #fff;
border-left-color: #000; }
color: #7f7f7f; }
.notebook tab.prelight-page GtkLabel, .notebook tab GtkLabel.prelight-page {
color: #3f3f3f; }
- .notebook tab.active-page GtkLabel, .notebook tab GtkLabel.active-page {
+ .notebook tab:active GtkLabel {
color: #000; }
- .notebook tab.active-page GtkLabel:backdrop, .notebook tab GtkLabel.active-page:backdrop {
+ .notebook tab:active GtkLabel:backdrop {
color: #000; }
.notebook tab .button {
border: 2px solid transparent;